//导入生成安装包模块
var electronInstaller = require('electron-winstaller');
var path = require("path");
 
//配置信息
resultPromise = electronInstaller.createWindowsInstaller({
    appDirectory: path.join('./build/electron-quick-start-win32-x64'), //上面打包的目录
    outputDirectory: path.join('./package'), //安装包存放的目录，没有会自动生成
    authors: 'Ding',//作者
    exe: "electron-quick-start.exe",//打包目录中的可执行文件名称
    setupIcon: "./favicon.ico",//安装图标，必须本地
    // iconUrl: 'http://pm72qibzx.bkt.clouddn.com/icon.ico',//程序图标，必须url
    noMsi: true,//不开启msi
    setupExe:'vue.exe',//安装包名称
    title:'Ding',//标题
    description: "11"//描述
});
 
//安装包生成成功会打印 It worked!
resultPromise.then(() => console.log("It worked!"), (e) => console.log(`No dice: ${e.message}`));